﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GCELibrary.Current;
namespace ZF.BLL
{
    /// <summary>
    /// 页面的操作类型
    /// </summary>
    [Flags]
    public enum PageOperType
    {
        /// <summary>
        /// 未设置
        /// </summary>
        [Description(Name = "未设置")]
        None=0x00,
        /// <summary>
        /// 列表
        /// </summary>
        [Description(Name = "列表")]
        List=0x01,
        /// <summary>
        /// 查看
        /// </summary>
        [Description(Name = "查看")]
        View=0x01,
        /// <summary>
        /// 添加
        /// </summary>
        [Description(Name = "添加")]
        AddNew=0x02,
        /// <summary>
        /// 修改
        /// </summary>
        [Description(Name = "修改")]
        Edit=0x04,
        /// <summary>
        /// 删除
        /// </summary>
        [Description(Name = "删除")]
        Delete=0x08
    }

    public static partial class EnumDescription
    {
        public static DescriptionAttribute GetDescription(this PageOperType type)
        {
            return DescriptionAttribute.GetEnumDescription(type);
        }
    }
}
